package com.example.demo.entity;

import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;
import java.math.BigDecimal;

/**
 * Description:
 * <p>@author: LUO</p>
 * Date: 2019-05-16 8:08
 **/
@Entity
@Data
@Table(name = "ic_table")
@EntityListeners(AuditingEntityListener.class)
@Accessors(chain = true)
public class User {

    @Id
    @GeneratedValue(generator = "uuid")
    @GenericGenerator(name = "uuid", strategy = "uuid")
    private String id;

    @Column(name = "ic_code")
    private String icCode;

    @Column(name = "balance")
    private BigDecimal balance;

}
